import Vue from 'vue'
import Router from 'vue-router'
import beforeEach from './beforeEach.js'
Vue.use(Router);
const index = r => require.ensure([], () => r(require('../pages/risk-control/index')), 'index');
const detail = r=> require.ensure([], () => r(require('../pages/risk-control/detail')), 'detail');
let router =  new Router({
  routes: [
    {
      path: '/index',
      component: index,
      meta: {
        title: '风控系统'
      }
    },
    {
      path:'/',
      component:detail,
      meta:{
       title:'风控系统详情'
      }
     
    }
  ]
});
beforeEach(router)
export default router